﻿#CROSS_COMPILE=arm-at91-linux-gnueabi-
CXX = $(CROSS_COMPILE)g++
CXXFLAGS = -std=c++11 -I../../include 
LDFLAGS = -pthread

TARGET = pub sub multisub
.PHONY: $(TARGET) clean
all: $(TARGET)
	
pub: 
	$(CXX) $@.cpp -o $@ $(CXXFLAGS) $(LDFLAGS)
	
sub: 
	$(CXX) $@.cpp -o $@ $(CXXFLAGS) $(LDFLAGS)
	
multisub: 
	$(CXX) $@.cpp -o $@ $(CXXFLAGS) $(LDFLAGS)

clean:
	$(RM) $(TARGET)
